import matplotlib.pyplot as plt
from sklearn.datasets._samples_generator import make_regression
# import matplotlib.pyplot as plt
x, y, coef= make_regression(n_samples=100, n_features=1, noise=10, coef=True)
# print(x)
# print(y)
plt.scatter(x, y)
plt.plot(x, x*coef, color='blue', linewidth=3)
plt.show()